package cardgame;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Multi_dimentional_array {
    public static void main(String[] args) {
        List<List<String>> list =  new ArrayList();
        for (int i = 1; i < 5 ; i++) {
            list.add(new ArrayList<>());
            for (int j = 0; j <i; j++) {
                String s = String.valueOf(j);
                list.get(i-1).add(s);
            }
        }
        System.out.println(list);
    }
}
